package com.tianluo.tianluobookstore.enums;

public enum BookCodeEnum {

    BOOK_NOT_FOUND("0101","书籍不存在"),

    BOOK_ADD_FAIL("0102","书籍添加失败"),

    BOOK_NUM_NOT_ENOUGH("0103","库存不足"),
    ;

    /**
     * 自定义状态码
     **/
    private final String code;
    /**自定义描述**/
    private final String message;

    BookCodeEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }
    public String getMessage() {
        return message;
    }
}
